package iedcyt.acute.controller.listeners.errorLog;

import iedcyt.acute.model.ErrorLogModel;
import iedcyt.acute.view.ErrorLogView;

import org.eclipse.swt.events.DisposeEvent;
import org.eclipse.swt.events.DisposeListener;
import org.eclipse.swt.widgets.Event;
import org.eclipse.swt.widgets.Listener;

public class CloseListener implements DisposeListener {

	private ErrorLogView _view;
	private ErrorLogModel _model;
	
	public CloseListener(ErrorLogView view, ErrorLogModel model) {
		this._model = model;
		this._view = view;
	}	
	
	@Override
	public void widgetDisposed(DisposeEvent arg0) {
		_view.closeWindow();
		
	}

}
